package com.beyondsoft.mcms.web.servlet;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

import com.beyondsoft.mcms.common.ApplicationContextUtils;

public class McmsDispatcherServlet extends DispatcherServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected void initStrategies(ApplicationContext context) {
		super.initStrategies(context);
		if (!ApplicationContextUtils.isAlreadyInitialized()) {
			ApplicationContextUtils.init((AbstractApplicationContext) context);
		}

	}
}
